package cn.enilu.weblite;

import cn.enilu.weblite.core.dao.BaseRepositoryFactoryBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;


@SpringBootApplication
@EnableCaching
@EnableJpaRepositories(basePackages= "cn.enilu.weblite.admin.dao", repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class)
@EnableJpaAuditing
public class AdminApplication     {

    protected final static Logger logger = LoggerFactory.getLogger(AdminApplication.class);


    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
        logger.info("AdminApplication is success!");
    }
}
